//用户的前端业务逻辑接口

function login(identify,password,code,token,rememberme){
    const promise = new Promise((resolve, reject) => {
        $.ajax({
            url: baseUrl + 'users/auth?identify='+identify+'&password='+password+"&code="+code+"&token="+token+"&rememberme="+rememberme,
            type: 'GET',
            dataType: 'json',
            success: resp => {
                resolve(resp);

            },
            error: err => {
                reject(err);
            }
        })
    })
    return promise;
}